package com.im.util;

/**   
* 閸欐垿锟介柇顔绘闂囷拷顪呮担璺ㄦ暏閻ㄥ嫬鐔�張顑夸繆閹拷
*/    
import java.util.Properties;
   
public class MailSenderInfo {    
    // 閸欐垿锟介柇顔绘閻ㄥ嫭婀囬崝鈥虫珤閻ㄥ嚘P閸滃瞼顏崣锟�  
    private String mailServerHost="smtp.163.com";    
    private String mailServerPort = "25";    
    // 闁喕娆㈤崣鎴︼拷閼板懐娈戦崷鏉挎絻    
    private String fromAddress="nju_zhxy_mail@163.com";    
    // 闁喕娆㈤幒銉︽暪閼板懐娈戦崷鏉挎絻    
    private String toAddress;    
    // 閻у妾伴柇顔绘閸欐垿锟介張宥呭閸ｃ劎娈戦悽銊﹀煕閸氬秴鎷扮�鍡欑垳    
    private String userName="nju_zhxy_mail@163.com";    
    private String password="q1w2e3r4@";    
    // 閺勵垰鎯侀棁锟筋渽闊偂鍞ゆ宀冪槈    
    private boolean validate = false;    
    // 闁喕娆㈡稉濠氼暯    
    private String subject;    
    // 闁喕娆㈤惃鍕瀮閺堫剙鍞寸�锟�  
    private String content;    
    // 闁喕娆㈤梽鍕閻ㄥ嫭鏋冩禒璺烘倳    
    private String[] attachFileNames;      
    /**   
      * 閼惧嘲绶遍柇顔绘娴兼俺鐦界仦鐐达拷   
      */    
    public Properties getProperties(){    
      Properties p = new Properties();    
      p.put("mail.smtp.host", this.mailServerHost);    
      p.put("mail.smtp.port", this.mailServerPort);    
      p.put("mail.smtp.auth", this.validate ? "true" : "false");    
      return p;    
    }    
    public String getMailServerHost() {    
      return mailServerHost;    
    }    
    public void setMailServerHost(String mailServerHost) {    
      this.mailServerHost = mailServerHost;    
    }   
    public String getMailServerPort() {    
      return mailServerPort;    
    }   
    public void setMailServerPort(String mailServerPort) {    
      this.mailServerPort = mailServerPort;    
    }   
    public boolean isValidate() {    
      return validate;    
    }   
    public void setValidate(boolean validate) {    
      this.validate = validate;    
    }   
    public String[] getAttachFileNames() {    
      return attachFileNames;    
    }   
    public void setAttachFileNames(String[] fileNames) {    
      this.attachFileNames = fileNames;    
    }   
    public String getFromAddress() {    
      return fromAddress;    
    }    
    public void setFromAddress(String fromAddress) {    
      this.fromAddress = fromAddress;    
    }   
    public String getPassword() {    
      return password;    
    }   
    public void setPassword(String password) {    
      this.password = password;    
    }   
    public String getToAddress() {    
      return toAddress;    
    }    
    public void setToAddress(String toAddress) {    
      this.toAddress = toAddress;    
    }    
    public String getUserName() {    
      return userName;    
    }   
    public void setUserName(String userName) {    
      this.userName = userName;    
    }   
    public String getSubject() {    
      return subject;    
    }   
    public void setSubject(String subject) {    
      this.subject = subject;    
    }   
    public String getContent() {    
      return content;    
    }   
    public void setContent(String textContent) {    
      this.content = textContent;    
    }    
}   
